//
//  RefundRiskRechargeSuccess.m
//  WBBaseProject
//
//  Created by xiaozhi on 2018/4/12.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "RefundRiskRechargeSuccess.h"

@implementation RefundRiskRechargeSuccess

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)backToRuskAccount:(id)sender {
    if (self.backToRiskAccount) {
        self.backToRiskAccount();
    }
}
- (IBAction)backToHome:(id)sender {
    if (self.backToHome) {
        self.backToHome();
    }
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    NSArray *imagesURLStrings = @[
                                  @"https://ss2.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/super/whfpf%3D425%2C260%2C50/sign=a4b3d7085dee3d6d2293d48b252b5910/0e2442a7d933c89524cd5cd4d51373f0830200ea.jpg",
                                  @"https://ss0.baidu.com/-Po3dSag_xI4khGko9WTAnF6hhy/super/whfpf%3D425%2C260%2C50/sign=a41eb338dd33c895a62bcb3bb72e47c2/5fdf8db1cb134954a2192ccb524e9258d1094a1e.jpg",
                                  @"http://c.hiphotos.baidu.com/image/w%3D400/sign=c2318ff84334970a4773112fa5c8d1c0/b7fd5266d0160924c1fae5ccd60735fae7cd340d.jpg"
                                  ];
    //SDCycleScrollView *cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 10, kScreenWidth, 115) delegate:self placeholderImage:[UIImage imageNamed:@"placeholder"]];
    self.cycleView.infiniteLoop = YES;
    self.cycleView.showPageControl = YES;
    self.cycleView.imageURLStringsGroup = imagesURLStrings;
    self.cycleView.placeholderImage = [UIImage imageNamed:@"placeholder"];
    self.cycleView.delegate = self;
    self.cycleView.currentPageDotImage = [UIImage imageNamed:@"pageControlCurrentDot"];
    self.cycleView.pageDotImage = [UIImage imageNamed:@"pageControlDot"];
    
    
}
/** 点击图片回调 */
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index
{
    if (self.clickImg) {
        self.clickImg(index);
    }
}

/** 图片滚动回调 */
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didScrollToIndex:(NSInteger)index
{
    
}
@end
